import Layout from "@/views/layout/Layout";

export const scheduleRouterMap = [{
        path: "/login",
        component: () =>
            import ("@/views/login/index"),
        hidden: true,
    }, {
        path: "/",
        component: Layout,
        redirect: "/schedule/scheduleGisHome",
        name: "首页",
        hidden: true,
    }, {
        path: "/zhanDianGuanLi",
        component: Layout,
        name: "站点管理",
        icon: "setting",
        authority: "zhanDianGuanLi",
        children: [{
                path: "FlHydrantInfo",
                component: () =>
                    import ("@/views/schedule/hydrant/flHydrantInfo/index"),
                name: "消防栓设备",
                authority: "FlHydrantInfo",
                meta: { keepAlive: true }, //缓存页面数据
            }, {
                path: "flWaterMonitorPoint",
                component: () =>
                    import ("@/views/schedule/base/flWaterMonitorPoint/index"),
                name: "水厂监测点",
                authority: "flWaterMonitorPoint",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flPumpMonitorPoint",
                component: () =>
                    import ("@/views/schedule/base/flPumpMonitorPoint/index"),
                name: "泵房监测点",
                authority: "flPumpMonitorPoint",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flPipeMonitorPoint",
                component: () =>
                    import ("@/views/schedule/base/flPipeMonitorPoint/index"),
                name: "管网监测点",
                authority: "flWaterMonitorPoint",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flPump",
                component: () =>
                    import ("@/views/schedule/base/flPump/index"),
                name: "泵组维护",
                authority: "flPump",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flParamZone",
                component: () =>
                    import ("@/views/schedule/base/flParameter/index"),
                name: "参数分区",
                authority: "flParamZone",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flRegional",
                component: () =>
                    import ("@/views/schedule/base/flRegional/index"),
                name: "区域组织",
                authority: "flRegional",
                meta: { keepAlive: true }, //缓存页面数据
            },
        ],
    },
    {
        path: "/schedule",
        component: Layout,
        name: "调度首页",
        icon: "setting",
        authority: "schedule",
        children: [{
            path: "scheduleGisHome",
            component: () =>
                import ("@/views/schedule/base/scheduleGisHome/index"),
            // import ("@/views/schedule/base/yunXingJianKong/realTimeData/index"),
            name: "首页",
            authority: "scheduleGisHome",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/schedule",
        component: Layout,
        name: "调度首页",
        icon: "setting",
        authority: "schedule",
        children: [{
            path: "scheduleGisHome",
            component: () =>
                import ("@/views/schedule/base/scheduleGisHome/index"),
            // import ("@/views/schedule/base/yunXingJianKong/realTimeData/index"),
            name: "首页",
            authority: "scheduleGisHome",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/yunXingJianKong",
        component: Layout,
        name: "运行监控",
        icon: "setting",
        authority: "yunXingJianKong",
        children: [{
                path: "realTimeData",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/realTimeData/index"),
                name: "实时数据",
                authority: "realTimeData",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "dataAnalys",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/dataAnalys/index"),
                name: "数据分析",
                authority: "dataAnalys",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "operationReport",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/operationReport/index"),
                name: "运营报表",
                authority: "operationReport",
                meta: { keepAlive: true }, //缓存页面数据
            }
        ],
    },
    {
        path: "/bengFangDiaoDu",
        component: Layout,
        name: "泵房调度",
        icon: "setting",
        authority: "bengFangDiaoDu",
        children: [{
                path: "flSupplyPump",
                component: () =>
                    import ("@/views/schedule/base/bengFangDiaoDu/flSupplyPump/index"),
                name: "直供泵房",
                authority: "flSupplyPump",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flOverviewPump",
                component: () =>
                    import ("@/views/schedule/base/bengFangDiaoDu/flOverviewPump/index"),
                name: "泵房总览",
                authority: "flOverviewPump",
                meta: { keepAlive: true }, //缓存页面数据
            }
        ],
    },
    {
        path: "/guanWangDiaoDu",
        component: Layout,
        name: "管网调度",
        icon: "setting",
        authority: "guanWangDiaoDu",
        children: [{
            path: "flOverviewPipe",
            component: () =>
                import ("@/views/schedule/base/guanWangDiaoDu/flOverviewPipe/index"),
            name: "管网总览",
            authority: "flOverviewPipe",
            meta: { keepAlive: true }, //缓存页面数据
        }, {
            path: "pipeRealtime",
            component: () =>
                import ("@/views/schedule/base/guanWangDiaoDu/pipeRealtime/index"),
            name: "实时监控",
            authority: "pipeRealtime",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/shuiChangDiaoDu",
        component: Layout,
        name: "水厂调度",
        icon: "setting",
        authority: "shuiChangDiaoDu",
        children: [{
                path: "flOverviewWater",
                component: () =>
                    import ("@/views/schedule/base/shuiChangDiaoDu/flOverviewWater/index"),
                name: "水厂总览",
                authority: "flOverviewWater",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flSupplyWater",
                component: () =>
                    import ("@/views/schedule/base/shuiChangDiaoDu/flSupplyWater/index"),
                name: "水厂",
                authority: "flSupplyWater",
                meta: { keepAlive: true }, //缓存页面数据
            }
        ],
    },
    {
        path: "/waterAnaly",
        component: Layout,
        name: "水厂分析",
        icon: "setting",
        authority: "waterAnaly",
        children: [{
            path: "operationAnalys",
            component: () =>
                import ("@/views/waterAnalysi/operationAnalysis/index"),
            name: "水厂运行分析",
            authority: "operationAnalys",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/pumpAnaly",
        component: Layout,
        name: "泵房分析",
        icon: "setting",
        authority: "pumpAnaly",
        children: [{
            path: "operationAnalys",
            component: () =>
                import ("@/views/pumpAnaly/operationAnalysis/index"),
            name: "泵房运行分析",
            authority: "operationAnalys",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/pipeAnaly",
        component: Layout,
        name: "管网分析",
        icon: "setting",
        authority: "pipeAnaly",
        children: [{
            path: "operationAnalys",
            component: () =>
                import ("@/views/pipeAnaly/operationAnalysis/index"),
            name: "管网运行分析",
            authority: "operationAnalys",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/eventManager",
        component: Layout,
        name: "事件管理",
        icon: "setting",
        authority: "eventManager",
        children: [{
                path: "alarmManage",
                component: () =>
                    import ("@/views/schedule/base/eventManager/alarmManage/index"),
                name: "调度报警管理",
                authority: "alarmManage",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "alarmRecord",
                component: () =>
                    import ("@/views/schedule/base/eventManager/alarmRecord/index"),
                name: "调度报警记录",
                authority: "alarmRecord",
                meta: { keepAlive: true }, //缓存页面数据
            },
            // {
            //     path: "alarmAnalys",
            //     component: () =>
            //         import ("@/views/schedule/base/eventManage/alarmAnalys/index"),
            //     name: "报警分析",
            //     authority: "alarmAnalys",
            //     meta: { keepAlive: true }, //缓存页面数据
            // }
        ],
    },
]

export const hydrantRouterMap = [{
        path: "/login",
        component: () =>
            import ("@/views/login/index"),
        hidden: true,
    }, {
        path: "/",
        component: Layout,
        redirect: "/fireHydrantHome/fireContGisHome",
        name: "首页",
        hidden: true,
    }, {
        path: "/zhanDianGuanLii",
        component: Layout,
        name: "站点管理",
        icon: "setting",
        authority: "zhanDianGuanLii",
        children: [{
                path: "FlHydrantInfo",
                component: () =>
                    import ("@/views/schedule/hydrant/flHydrantInfo/index"),
                name: "消防栓设备",
                authority: "FlHydrantInfo",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flRegional",
                component: () =>
                    import ("@/views/schedule/base/flRegional/index"),
                name: "区域组织",
                authority: "flRegional",
                meta: { keepAlive: true }, //缓存页面数据
            },
        ]
    },
    {
        path: "/fireHydrantHome",
        component: Layout,
        name: "消防栓首页",
        icon: "setting",
        authority: "fireHydrantHome",
        children: [{
            path: "fireContGisHome",
            component: () =>
                import ("@/views/schedule/base/fireContGisHome/index"),
            // import ("@/views/schedule/base/yunXingJianKong/realTimeData/index"),
            name: "首页",
            authority: "fireContGisHome",
            meta: { keepAlive: true }, //缓存页面数据
        }],
    },
    {
        path: "/yunXingJianKong",
        component: Layout,
        name: "运行监控",
        icon: "setting",
        authority: "yunXingJianKong",
        children: [{
                path: "realTimeData",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/realTimeData/index"),
                name: "实时数据",
                authority: "realTimeData",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "dataAnalys",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/dataAnalys/index"),
                name: "数据分析",
                authority: "dataAnalys",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "operationReport",
                component: () =>
                    import ("@/views/schedule/base/yunXingJianKong/operationReport/index"),
                name: "运营报表",
                authority: "operationReport",
                meta: { keepAlive: true }, //缓存页面数据
            }
        ],
    },
    {
        path: "/flxunJianGuanLi",
        component: Layout,
        name: "巡检管理",
        icon: "setting",
        authority: "flxunJianGuanLi",
        children: [{
                path: "flPatrolPlan",
                component: () =>
                    import ("@/views/chenruwei/flxunJianGuanLi/flPatrolPlan/index"),
                name: "巡检计划",
                authority: "flPatrolPlan",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flPatrolTask",
                component: () =>
                    import ("@/views/chenruwei/flxunJianGuanLi/flPatrolTask/index"),
                name: "巡检任务",
                authority: "flPatrolTask",
                meta: { keepAlive: true }, //缓存页面数据
            },

        ],
    },
    {
        path: "/flweiBaoGuanLi",
        component: Layout,
        name: "维保管理",
        icon: "setting",
        authority: "flweiBaoGuanLi",
        children: [{
                path: "flMaintenanceFault",
                component: () =>
                    import ("@/views/chenruwei/flweiBaoGuanLi/flMaintenanceFault/index"),
                name: "报障管理（报障人）",
                authority: "flMaintenanceFault",
                meta: { keepAlive: true }, //缓存页面数据
            }, {
                path: "flMaintenanceExamine",
                component: () =>
                    import ("@/views/chenruwei/flweiBaoGuanLi/flMaintenanceExamine/index"),
                name: "报障管理（审核人）",
                authority: "flMaintenanceExamine",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flMaintenanceSheet",
                component: () =>
                    import ("@/views/chenruwei/flweiBaoGuanLi/flMaintenanceSheet/index"),
                name: "工单管理（创建人）",
                authority: "flMaintenanceSheet",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "flMaintenanceHandle",
                component: () =>
                    import ("@/views/chenruwei/flweiBaoGuanLi/flMaintenanceHandle/index"),
                name: "工单管理（处理人）",
                authority: "flMaintenanceHandle",
                meta: { keepAlive: true }, //缓存页面数据
            },

        ],
    },
    {
        path: "/shiJianGuanLi",
        component: Layout,
        name: "事件管理",
        icon: "setting",
        authority: "shiJianGuanLi",
        children: [{
                path: "alarmManage",
                component: () =>
                    import ("@/views/schedule/base/shiJianGuanLi/alarmManage/index"),
                name: "报警管理",
                authority: "alarmManage",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "alarmAnalys",
                component: () =>
                    import ("@/views/schedule/base/shiJianGuanLi/alarmAnalys/index"),
                name: "报警分析",
                authority: "alarmAnalys",
                meta: { keepAlive: true }, //缓存页面数据
            },
            {
                path: "alarmRecord",
                component: () =>
                    import ("@/views/schedule/base/shiJianGuanLi/alarmRecord/index"),
                name: "报警记录",
                authority: "alarmRecord",
                meta: { keepAlive: true }, //缓存页面数据
            }
        ],
    },
    {
        path: "/jichaoShebeiguanli",
        component: Layout,
        name: "集抄设备管理",
        icon: "setting",
        authority: "jichaoShebeiguanli",
        children: [{
            path: "productModel",
            component: () =>
              import("@/views/collection/base/flProductModel/index"),
            name: "产品模型",
            authority: "productModel",
            meta: {
              keepAlive: true
            }, //缓存页面数据
          }, {
            path: "paraMeter",
            component: () =>
              import("@/views/collection/base/flParameter/index"),
            name: "参数库维护",
            authority: "paraMeter",
            meta: {
              keepAlive: true
            }, //缓存页面数据
          },
          {
            path: "deviceInfo",
            component: () =>
              import("@/views/collection/base/flDeviceInfo/index"),
            name: "设备管理",
            authority: "deviceInfo",
            meta: {
              keepAlive: true
            }, //缓存页面数据
          },
          {
            path: "deviceFirm",
            component: () =>
              import("@/views/collection/base/deviceFirm/index"),
            name: "设备厂家",
            authority: "deviceFirm",
            meta: {
              keepAlive: true
            }, //缓存页面数据
          },
        ]
      }
]